#include "thread.h"

int makeConnect(MYSQL *mysql){
    mysql=mysql_init(NULL);

    MYSQL *ret = mysql_real_connect(mysql,
                                    "localhost","root","123456",
                                    "diskMysql",
                                    0,NULL,0
                                   );
    if(!ret){
        fprintf(stderr,"mysql_real_connect:%s\n", mysql_error(mysql));
        return -1; 
    }

    printf("connect over\n");
    return 0;
}
